{% extends 'todo/base.html' %}

{% block content %}
    <h2>用户登录</h2>
    <form method="post">
        {% csrf_token %}
        {{ form.as_p }}
        <button type="submit">登录</button>
    </form>
    <p>还没有账号？<a href="{% url 'register' %}">注册</a></p>
{% endblock %}